package cn.yll.user;

import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 商城用户系统后端服务
 * @author yangll
 */
@Slf4j
@EnableDiscoveryClient
@EnableAutoDataSourceProxy
@EnableFeignClients({"cn.yll.api.order.service"})
@SpringBootApplication(scanBasePackages = {"cn.yll.common","cn.yll.api.order.service","cn.yll.user"})
@MapperScan(basePackages = "cn.yll.user.mapper")
public class UserServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserServiceApplication.class, args);
        log.info("====================================================");
        log.info("==============商城user-serv项目启动成功=================");
        log.info("=======================+============================");
    }
}
